//
//  SchoolViewModel.h
//  BOSS-SOOC
//
//  Created by apple on 16/8/12.
//  Copyright © 2016年 Gcx. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "SchoolModel.h"

/**
 *  校内列表的请求的数据结果
*/
typedef void(^SucceedValueBlock)(id succeedValue);
typedef void(^FailValueBlock)(id failValue);

/**
 *  banner图的数据
 */
typedef void(^SucceedBannerBlock)(id succeedBanner);
typedef void(^FailBannerBlock)(id failBanner);


@interface SchoolViewModel : NSObject

/**
 *  校内列表的回调
 */
@property (nonatomic,copy) SucceedValueBlock succeedBlock;
@property (nonatomic,copy) FailValueBlock failBlock;

/**
 *  banner图的回调
 */
@property (nonatomic,copy) SucceedBannerBlock succeedBannerBlock;
@property (nonatomic,copy) FailBannerBlock FailBannerBlock;

/**
 *  存所有课程的数组
 */
@property (nonatomic,strong) NSMutableArray *sourceArr;


/**
 *  获取校内列表数据
 */
- (void)getSchoolDatePage:(long)page;

/**
 *  获取banner图数据
 */
- (void)getBannerDate;

/**
 *  跳转到下一级界面
 */
- (void)schoolDetailWithSchoolModel:(SchoolModel *)shcoolModel WithViewController:(UIViewController *)superController;

@end
